package com.行为型模型.S中介者模式;

/**
 * //具体同事类 承租人
 */
public class Tenant extends Person {
    public Tenant(String name, Mediator mediator) {
        super(name, mediator);
    }
    //与中介者联系
    public void contact(String msg){
        mediator.contact(msg,this);
    }
    //获取信息
    public void getMsg(String msg){

        System.out.println("租客"+name+"获取的信息："+msg);
    }

}
